<template>
	<view class="show">
		<view class="addree-I">
			<view class="baik"></view>
			<view class="user">
				<view class="xz">
					<u-checkbox v-model="checked" shape="circle" label="" size="40" iconSize="28" activeColor="white"
						iconColor="red" checked="ture" @change="toggleDefaultAddress"></u-checkbox>
				</view>
				<text class="defaultl">默认</text>
				<text>王锦浩 <text class="sj">155****8888</text></text>
			</view>
			<view class="addree">
				<text>山西省 太原市 杏花岭区 鼓楼街道 山西省太原市杏花岭区后小河1号(珠琳旺角大厦)</text>
				<u-icon name="edit-pen" size="60rpx" @click="UpdateAddree"></u-icon>
			</view>
		</view>
		<view class="xmm">
			<button class="save-address-button" @click="saveAddress">添加新地址</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked: false
			};
		},
		methods: {
			saveAddress(){
				this.$router.push('/pages/addreeList/newaddree');
			},
			UpdateAddree(){
				this.$router.push('/pages/addreeList/updateaddree');
			},
			toggleDefaultAddress() {
				// 您的处理逻辑
			}
		}
	};
</script>

<style>
	.xmm {
		display: flex;
		position: absolute;
		bottom: 0;
		width: 100%;
		height: 120rpx;
		align-items: center;
		border-top: 4rpx solid rgb(255, 170, 127);
	}

	.xz {
		margin-left: 14rpx;
	}

	.container u-checkbox {
		border: none !important;
		/* 删除边框 */
	}

	.baik {
		width: 100%;
		height: 60rpx;
	}

	.user text {
		margin-left: 18rpx;
	}

	.sj {
		margin-left: 18rpx;
		font-size: 26rpx;
		color: #7b7b7b;
	}

	.addree {
		display: flex;
		padding: 10rpx;
	}

	.defaultl {
		font-size: 26rpx;
		border-radius: 6rpx;
		width: 80rpx;
		height: 40rpx;
		background-color: #313131;
		color: #c7c7c7;
		text-align: center;
	}

	.user {
		width: 100%;
		height: 50rpx;
		display: flex;
		align-items: center;
	}

	.save-address-button {
		width: 92%;
		height: 77%;
		border-radius: 80rpx;
		background-color: #ed0000;
		color: #fff;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
</style>